<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .top {
            width: 100%;
            height: 60px;
            background-color: #333;
            /* 固定定位，相对浏览器窗口定位 */
            position: fixed;
            z-index: 100;
        }
        
        li {
            display: inline;
        }
        
        .my-relative {
            width: 200px;
            height: 200px;
            background-color: burlywood;
            /* 相对定位，相对正常位置进行定位 */
            position: relative;
            top: 500px;
            left: 50px;
            z-index: 500;
        }
        
        .my-absolute {
            width: 100px;
            height: 100px;
            background-color: red;
            /* 绝对定位，相对于static以外的第一个父级元素定位 */
            position: absolute;
            top: 180px;
            left: 180px;
        }
    </style>
</head>

<body>
    <div class="top">
        <ul>
            <li>
                <a href="aboutus.html">About Us</a>
            </li>
            <li>
                <a href="rooms.html">Rooms</a>
            </li>
            <li>
                <a href="facilities.hmtl">Facilities</a>
            </li>
            <li>
                <a href="contactus.html">Contact Us</a>
            </li>
        </ul>
    </div>
    <!-- <div class="my-absolute">

    </div> -->
    <div class="my-relative">
        <div class="my-absolute">

        </div>
    </div>
    <div style="height: 1500px;border: 1px solid blue;">
    </div>
</body>

</html>